﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Text;

namespace WMI.NET.CIM
{
    /// <summary>
    /// The CIM_Dependency class represents an association that establishes dependency relationships between objects. 
    /// </summary>
    public class CIM_Dependency
    {
        private CIM_ManagedSystemElement _Antecedent;
        private CIM_ManagedSystemElement _Dependent;

        /// <summary>
        /// Reference to the independent object in this association.
        /// </summary>
        public CIM_ManagedSystemElement Antecedent { get { return _Antecedent; } }

        /// <summary>
        /// Reference to the object that is dependent on the Antecedent property.
        /// </summary>
        public CIM_ManagedSystemElement Dependent { get { return _Dependent; } }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="mbo"></param>
        public CIM_Dependency(ManagementBaseObject mbo)
        {
            if (mbo != null)
            {
                _Antecedent = new CIM_ManagedSystemElement(mbo);
                _Dependent = new CIM_ManagedSystemElement(mbo);
            }

        }

    }
}
